<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>阿离博客-网盘文件列表</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style_files.css') }}">
    <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="https://avatar.moonshot.cn/avatar/cmri3mecp7fdvr21ch3g" />
</head>
<body>
 <div class="top">
    <h1>文件目录: {{ path }}</h1>
 </div>


{% with messages = get_flashed_messages() %}
    {% if messages %}
        <ul>
            {% for message in messages %}
                <li>{{ message }}</li>
            {% endfor %}
        </ul>
    {% endif %}
{% endwith %}


 <div class="content">
    <ul>
        {{ file_links | safe }}
    </ul>
 </div>

    <div class="footer">
    <a href="/files">返回根目录</a>|
    <a href="/upload?current_path={{ current_path }}">上传文件</a>|
    {% if parent_path != directory %}
        <a href="/files/{{ parent_path }}">返回上一级</a>|
    {% endif %}

    <a href="/">返回博客主页</a>
    </div>
</body>
</html>
